package com.lee.mq.common;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lishuo
 * Date: 2023-10-30
 * Time: 19:42
 */

/**
 * 这个类表示网络通信中的响应
 */
public class Response {
    // 表示响应的类型
    private int type;
    // 表示响应的载荷payload长度
    private int length;
    // 表示载荷
    private byte[] payload;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public byte[] getPayload() {
        return payload;
    }

    public void setPayload(byte[] payload) {
        this.payload = payload;
    }
}
